import { LoaderManager } from "../../../../com/gengine/resource/LoaderManager";
import { ImageInfo } from "../../../../com/gengine/resource/info/ImageInfo";
import { SkillInfo } from "../../model/SkillInfo";
type int = number;
//class SkillListPanel
    
    export  class SkillListPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initUI();
            return;
        }

        protected initUI(): void
        {
            this._bgBmp = new Object /* flash.display.Bitmap */();
            addChild(this._bgBmp);
            LoaderManager.instance.load("skillListBg.jpg", this.onSkillListBgLoadedHandler);
            return;
        }

        /* internal  */onSkillListBgLoadedHandler(arg1: ImageInfo): void
        {
            if (arg1.bitmapData) 
            {
                this._bgBmp.bitmapData = arg1.bitmapData;
            }
            return;
        }

        public initSkill(arg1: Array<any>): void
        {
            return;
        }

        public addSkill(arg1: SkillInfo): void
        {
            return;
        }

        public updateSkill(arg1: SkillInfo): SkillInfo
        {
            return null;
        }

        public itemClick(arg1: int): void
        {
            return;
        }

        public updateCondition(): void
        {
            return;
        }

        public guideLevelUp(arg1: Array<any>, arg2: Boolean): SkillInfo
        {
            return null;
        }

        public guideLevelUpClear(): void
        {
            return;
        }

        public autoUseAble(arg1: SkillInfo): void
        {
            return;
        }

        public startCoolDown(arg1: SkillInfo): void
        {
            return;
        }

        protected refreshSkill(arg1: int, arg2: SkillInfo): void
        {
            return;
        }

        protected initCallLater(): void
        {
            this._frameCount = 0;
            addEventListener(flash.events.Event.ENTER_FRAME, this.onEnterFrameHandler);
            return;
        }

        protected onEnterFrameHandler(arg1: Object /* flash.events.Event */): void
        {
            var loc1;
            var loc2=((loc1 = this)._frameCount + 1);
            loc1._frameCount = loc2;
            if (this._frameCount == 5) 
            {
                this._frameCount = 0;
                removeEventListener(flash.events.Event.ENTER_FRAME, this.onEnterFrameHandler);
                mouseEnabled = true;
                mouseChildren = true;
            }
            return;
        }

        protected /* var */_bgBmp: Object /* flash.display.Bitmap */;

        protected /* var */_frameCount: int;
    }
